# coding:utf-8
import os
import configparser
import platform

class DBConfig:
    def __init__(self):
        pass

    # 获取mysql_dev连接
    def get_mysql_dev_conn(self):
        conf = configparser.ConfigParser()
        conf.read("gol.cfg")
        host = conf.get("dev_mysql", "host")
        port = conf.get("dev_mysql", "port")
        dbname = conf.get("dev_mysql", "dbname")
        user_name = conf.get("dev_mysql", "user_name")
        password = conf.get("dev_mysql", "password")
        return host, port, dbname, user_name, password